﻿<controls:ChildWindow x:Class="DC_RackSLDE.addtblAttrProcessor"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      
           xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
           xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices"
           xmlns:dataFormToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
                      
           Width="355" Height="450"       
           Title="Create AttrProcessor">
    
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <dataFormToolkit:DataForm x:Name="_dataForm" Height="371" Width="319" VerticalAlignment="Top" 
                          HorizontalAlignment="Left" Margin="0,0,0,0" AutoGenerateFields="False">
            <!-- Load dataform columns and templates here -->
            <!-- **************************** -->

            <dataFormToolkit:DataForm.EditTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>

                        <dataFormToolkit:DataField Grid.Row="0" Grid.Column="0" Label=" Proc Key" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcKey, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="1" Grid.Column="0" Label=" Proc Comp Key" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcCompKey, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="2" Grid.Column="0" Label=" Proc Name" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcName, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="3" Grid.Column="0" Label=" Proc Cores" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcCores, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="4" Grid.Column="0" Label=" Proc Core Speed" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcCoreSpeed, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="5" Grid.Column="0" Label=" Proc Data Width" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcDataWidth, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="6" Grid.Column="0" Label=" Proc Addr Width" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcAddrWidth, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="7" Grid.Column="0" Label=" Proc Mem Size" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcMemSize, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="8" Grid.Column="0" Label=" Proc Comment" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcComment, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="9" Grid.Column="0" Label=" Proc Last Edit" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcLastEdit, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                        <dataFormToolkit:DataField Grid.Row="10" Grid.Column="0" Label=" Proc Last Update" LabelPosition="Auto">
                            <TextBox Text="{Binding Path=physProcLastUpdate, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, StringFormat=\{0:d\}}" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </dataFormToolkit:DataField>

                    </Grid>
                </DataTemplate>
            </dataFormToolkit:DataForm.EditTemplate>


            <!-- **************************** -->
            <!-- end of dataform columns and templates -->
        </dataFormToolkit:DataForm>

        <Button x:Name="CancelButton" Content="Cancel" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Width="75" Height="23" HorizontalAlignment="Right"  Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
    
</controls:ChildWindow>
